package com.naiterui.ehp.bs.ds.modules.goods.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.naiterui.ehp.bs.ds.common.entity.BaseTree;
import com.naiterui.ehp.bs.ds.modules.goods.entity.Classification;
import com.naiterui.ehp.bs.ds.modules.goods.mapper.ClassificationMapper;
import com.naiterui.ehp.bs.ds.modules.goods.service.IClassificationService;

/**
 * 基础分类
 */
@Service
public class ClassificationServiceImpl extends ServiceImpl<ClassificationMapper, Classification> implements IClassificationService {

    @Override
    public List<Classification> pharmacology() {
        List<Classification> list = this.baseMapper.getByType(1);
        return BaseTree.listToTree(list);
    }

}
